import './assets/main.scss'


import { createApp } from 'vue' //导入vue
import ElementPlus from 'element-plus' //导入element-plus
import 'element-plus/dist/index.css'  //导入样式
import App from './App.vue'

import locale from 'element-plus/dist/locale/zh-cn.js' //设置中文

import router from '@/router' //导入路由
import { createPinia } from 'pinia' //各页面都能用的
//导入持久化插件
import {createPersistedState} from 'pinia-persistedstate-plugin'

const pinia = createPinia()//创建pinia
const persist  =createPersistedState()

const app = createApp(App) //创建应用实例
app.use(pinia)
pinia.use(persist)//pinia使用持久化
app.use(router)//使用路由
app.use(ElementPlus,{locale}) //使用element
app.mount('#app') //控制html